﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Arcana.Contract.Tests.Argument.Is.Not.Equal
{
    [TestClass]
    public class ToAttributeTest
    {
        [Arcana.Contract.Argument.Is.Not.Equal.To("param", "hello")]
        public static void Target_1(string param)
        {
        }

        [TestMethod]
        [Owner("arcane_master")]
        [WorkItem(48)]
        [ExpectedException(typeof(ArgumentException))]
        public void ShouldThrowException()
        {
            Target_1("hello");
        }

        [TestMethod]
        [Owner("arcane_master")]
        [WorkItem(48)]
        public void ShouldPass()
        {
            Target_1(null);
            Target_1("Hello");
            Target_1("anoter string");
            Target_1(string.Empty);
        }
    }
}
